﻿using KinectWindows.Controls;
using KinectWindows.Windows;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;

namespace KinectWindows
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        // The Active Controls that the Mouse will interact with
        public static NuiWindow ActiveControl;
        public static MainWindow BaseWindow;
        
        private void Application_LoadCompleted_1(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
            App.ActiveSensor = 0;
           
        }
        public static void Start(MainWindow window)
        {
            BaseWindow = window;
            (new Thread(new ThreadStart(WindowManager.WindowManagerLooper.Start))).Start();
        }

        private void Application_Exit_1(object sender, ExitEventArgs e)
        {
            WindowManager.WindowManagerLooper.Stop();
        }




        public static int ActiveSensor { get; set; }
    }
}
